<!DOCTYPE html>
<html>
<head>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <#--<input name="id" type="hidden" value="${(user.id)!}"/>-->

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName"
                   lay-verify="required" name="userName" id="userName"  value="${(user.userName)!}" placeholder="请输入用户名">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">密 码</label>
        <div class="layui-input-block">
            <input type="password" class="layui-input userName"
                   lay-verify="required" name="password" id="password" value="${(user.userPwd)!}" placeholder="请输入密码">
        </div>

        <!--判断用户名是否可用的图标-->
        <div class="layui-inline">
            <i class="layui-icon" hidden id="ri" style="color: green; font-weight: bold"></i>
            <i class="layui-icon" hidden id="le" style="color: red; font-weight: bold">ဆ</i>
        </div>

    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit lay-filter="sub">注册</button>
            <br/>
            <p style="width: 85%">
                <a href="${ctx}/index" class="fl">已有账号？立即登录</a>
            </p>
        </div>
    </div>
</form>

<script type="text/javascript" src="${ctx}/js/user/register.js"></script>
</body>
</html>